<html>
<head>
<title>resetPwd.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #000000;}
.s1 { color: #0000ff; font-weight: bold;}
.s2 { color: #000000;}
.s3 { color: #000080; font-weight: bold;}
.s4 { color: #008000; font-weight: bold;}
.s5 { color: #808080; font-style: italic;}
.s6 { color: #008000; font-weight: bold;}
.s7 { color: #000080; font-weight: bold;}
.s8 { color: #0000ff;}
.ln { color: #999999; font-weight: normal; font-style: normal; }
</style>
</head>
<body bgcolor="#ffffff">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#c0c0c0" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
resetPwd.html</font>
</center></td></tr></table>
<pre><a name="l1"><span class="ln">1    </span></a>&lt;!DOCTYPE <span class="s1">html</span>&gt;
<a name="l2"><span class="ln">2    </span></a>&lt;<span class="s3">html </span><span class="s1">lang=</span><span class="s4">&quot;zh&quot; </span><span class="s1">xmlns:th=</span><span class="s4">&quot;http://www.thymeleaf.org&quot;</span>&gt;
<a name="l3"><span class="ln">3    </span></a>&lt;<span class="s3">head</span>&gt;
<a name="l4"><span class="ln">4    </span></a>    &lt;<span class="s3">th:block </span><span class="s1">th:include=</span><span class="s4">&quot;include :: header('修改用户密码')&quot;</span>/&gt;
<a name="l5"><span class="ln">5    </span></a>&lt;/<span class="s3">head</span>&gt;
<a name="l6"><span class="ln">6    </span></a>&lt;<span class="s3">body </span><span class="s1">class=</span><span class="s4">&quot;white-bg&quot;</span>&gt;
<a name="l7"><span class="ln">7    </span></a>&lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;wrapper wrapper-content animated fadeInRight ibox-content&quot;</span>&gt;
<a name="l8"><span class="ln">8    </span></a>    &lt;<span class="s3">form </span><span class="s1">class=</span><span class="s4">&quot;form-horizontal m&quot; </span><span class="s1">id=</span><span class="s4">&quot;form-user-resetPwd&quot;</span>&gt;
<a name="l9"><span class="ln">9    </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l10"><span class="ln">10   </span></a>            &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-3 control-label &quot;</span>&gt;登录名称：&lt;/<span class="s3">label</span>&gt;
<a name="l11"><span class="ln">11   </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-8&quot;</span>&gt;
<a name="l12"><span class="ln">12   </span></a>                &lt;<span class="s3">input </span><span class="s1">class=</span><span class="s4">&quot;form-control&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">readonly=</span><span class="s4">&quot;true&quot; </span><span class="s1">name=</span><span class="s4">&quot;loginName&quot; </span><span class="s1">th:value=</span><span class="s4">&quot;${session.loginname}&quot;</span>/&gt;
<a name="l13"><span class="ln">13   </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l14"><span class="ln">14   </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l15"><span class="ln">15   </span></a>        <span class="s5">&lt;!--&lt;div class=&quot;form-group&quot;&gt;--&gt;</span>
<a name="l16"><span class="ln">16   </span></a>            &lt;!--&lt;label class=&quot;col-sm-3 control-label&quot;&gt;旧密码：&lt;/label&gt;--&gt;
<a name="l17"><span class="ln">17   </span></a>            &lt;!--&lt;div class=&quot;col-sm-8&quot;&gt;--&gt;
<a name="l18"><span class="ln">18   </span></a>                &lt;!--&lt;input class=&quot;form-control&quot; type=&quot;password&quot; name=&quot;oldPassword&quot; id=&quot;oldPassword&quot;&gt;--&gt;
<a name="l19"><span class="ln">19   </span></a>            &lt;!--&lt;/div&gt;--&gt;
<a name="l20"><span class="ln">20   </span></a>        &lt;!--&lt;/div&gt;--&gt;
<a name="l21"><span class="ln">21   </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l22"><span class="ln">22   </span></a>            &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-3 control-label&quot;</span>&gt;新密码：&lt;/<span class="s3">label</span>&gt;
<a name="l23"><span class="ln">23   </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-8&quot;</span>&gt;
<a name="l24"><span class="ln">24   </span></a>                &lt;<span class="s3">input </span><span class="s1">class=</span><span class="s4">&quot;form-control&quot; </span><span class="s1">type=</span><span class="s4">&quot;password&quot; </span><span class="s1">name=</span><span class="s4">&quot;new&quot; </span><span class="s1">id=</span><span class="s4">&quot;new&quot;</span>&gt;
<a name="l25"><span class="ln">25   </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l26"><span class="ln">26   </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l27"><span class="ln">27   </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l28"><span class="ln">28   </span></a>            &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-3 control-label&quot;</span>&gt;再次确认：&lt;/<span class="s3">label</span>&gt;
<a name="l29"><span class="ln">29   </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-8&quot;</span>&gt;
<a name="l30"><span class="ln">30   </span></a>                &lt;<span class="s3">input </span><span class="s1">class=</span><span class="s4">&quot;form-control&quot; </span><span class="s1">type=</span><span class="s4">&quot;password&quot; </span><span class="s1">name=</span><span class="s4">&quot;loginPassword&quot; </span><span class="s1">id=</span><span class="s4">&quot;confirm&quot;</span>&gt;
<a name="l31"><span class="ln">31   </span></a>                &lt;<span class="s3">span </span><span class="s1">class=</span><span class="s4">&quot;help-block m-b-none&quot;</span>&gt;&lt;<span class="s3">i </span><span class="s1">class=</span><span class="s4">&quot;fa fa-info-circle&quot;</span>&gt;&lt;/<span class="s3">i</span>&gt; 请再次输入您的密码&lt;/<span class="s3">span</span>&gt;
<a name="l32"><span class="ln">32   </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l33"><span class="ln">33   </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l34"><span class="ln">34   </span></a>    &lt;/<span class="s3">form</span>&gt;
<a name="l35"><span class="ln">35   </span></a>&lt;/<span class="s3">div</span>&gt;
<a name="l36"><span class="ln">36   </span></a>&lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;userId&quot; </span><span class="s1">id=</span><span class="s4">&quot;userid&quot; </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">th:value=</span><span class="s4">&quot;${session.loginname}&quot;</span>/&gt;
<a name="l37"><span class="ln">37   </span></a>&lt;<span class="s3">th:block </span><span class="s1">th:include=</span><span class="s4">&quot;include :: footer&quot;</span>/&gt;
<a name="l38"><span class="ln">38   </span></a>&lt;<span class="s3">script</span>&gt;
<a name="l39"><span class="ln">39   </span></a>    $(<span class="s6">&quot;#form-user-resetPwd&quot;</span>).validate({
<a name="l40"><span class="ln">40   </span></a>        rules: {
<a name="l41"><span class="ln">41   </span></a>            <span class="s5">// oldPassword: {</span>
<a name="l42"><span class="ln">42   </span></a>            //     required: true,
<a name="l43"><span class="ln">43   </span></a>            //     remote: {
<a name="l44"><span class="ln">44   </span></a>            //         url: &quot;/sbgl/sbuser/checkPassword&quot;,
<a name="l45"><span class="ln">45   </span></a>            //         type: &quot;get&quot;,
<a name="l46"><span class="ln">46   </span></a>            //         dataType: &quot;json&quot;,
<a name="l47"><span class="ln">47   </span></a>            //         data: {
<a name="l48"><span class="ln">48   </span></a>            //             password: function () {
<a name="l49"><span class="ln">49   </span></a>            //                 return $(&quot;input[name='oldPassword']&quot;).val();
<a name="l50"><span class="ln">50   </span></a>            //             }
<a name="l51"><span class="ln">51   </span></a>            //         }
<a name="l52"><span class="ln">52   </span></a>            //     }
<a name="l53"><span class="ln">53   </span></a>            // },
<a name="l54"><span class="ln">54   </span></a>            <span class="s7">new</span>: {
<a name="l55"><span class="ln">55   </span></a>                required: <span class="s7">true</span>,
<a name="l56"><span class="ln">56   </span></a>                minlength: <span class="s8">5</span>,
<a name="l57"><span class="ln">57   </span></a>                maxlength: <span class="s8">20</span>
<a name="l58"><span class="ln">58   </span></a>            },
<a name="l59"><span class="ln">59   </span></a>            loginPassword: {
<a name="l60"><span class="ln">60   </span></a>                required: <span class="s7">true</span>,
<a name="l61"><span class="ln">61   </span></a>                equalTo: <span class="s6">&quot;#new&quot;</span>
<a name="l62"><span class="ln">62   </span></a>            }
<a name="l63"><span class="ln">63   </span></a>        },
<a name="l64"><span class="ln">64   </span></a>        messages: {
<a name="l65"><span class="ln">65   </span></a>            <span class="s7">new</span>: {
<a name="l66"><span class="ln">66   </span></a>                required: <span class="s6">&quot;请输入新密码&quot;</span>,
<a name="l67"><span class="ln">67   </span></a>                minlength: <span class="s6">&quot;密码不能小于6个字符&quot;</span>,
<a name="l68"><span class="ln">68   </span></a>                maxlength: <span class="s6">&quot;密码不能大于20个字符&quot;</span>
<a name="l69"><span class="ln">69   </span></a>            },
<a name="l70"><span class="ln">70   </span></a>            loginPassword: {
<a name="l71"><span class="ln">71   </span></a>                required: <span class="s6">&quot;请再次输入新密码&quot;</span>,
<a name="l72"><span class="ln">72   </span></a>                equalTo: <span class="s6">&quot;两次密码输入不一致&quot;</span>
<a name="l73"><span class="ln">73   </span></a>            }
<a name="l74"><span class="ln">74   </span></a>
<a name="l75"><span class="ln">75   </span></a>        },
<a name="l76"><span class="ln">76   </span></a>        focusCleanup: <span class="s7">true</span>
<a name="l77"><span class="ln">77   </span></a>    });
<a name="l78"><span class="ln">78   </span></a>    <span class="s7">function </span>submitHandler() {
<a name="l79"><span class="ln">79   </span></a>        <span class="s7">var </span>uId=$(<span class="s6">&quot;#userid&quot;</span>).val()
<a name="l80"><span class="ln">80   </span></a>        <span class="s7">if </span>($.validate.form()) {
<a name="l81"><span class="ln">81   </span></a>            $.operate.saveuser(<span class="s6">&quot;/sbgl/sbuser/resetPwd/&quot;</span>+uId, $(<span class="s6">'#form-user-resetPwd'</span>).serialize());
<a name="l82"><span class="ln">82   </span></a>        }
<a name="l83"><span class="ln">83   </span></a>    }
<a name="l84"><span class="ln">84   </span></a>&lt;/<span class="s3">script</span>&gt;
<a name="l85"><span class="ln">85   </span></a>&lt;/<span class="s3">body</span>&gt;
<a name="l86"><span class="ln">86   </span></a>
<a name="l87"><span class="ln">87   </span></a>&lt;/<span class="s3">html</span>&gt;
<a name="l88"><span class="ln">88   </span></a></pre>
</body>
</html>